<?php
namespace app\index\small;

use app\common\Small;

class Right extends Small
{
    public function index()
    {
        //在线手册,取最新的5个文档
        $assign['new_doc'] = model('Doc')->where('is_publish','=',1)->limit(5)->select()->toArray();
        $this->assign($assign);
        return $this->fetch();
    }
}